/**
 * Watchdog.java
 * 版权所有(C) 2014
 * 创建者:cuiran 2014-8-18 下午2:58:07
 */
package com.example.watchdog;

/**
 *  Watchdog类
 * @author cuiran
 * @version 1.0.0
 */
public class Watchdog {
	private static Watchdog instance = null; 
    
	  public static Watchdog getInstance() { 
	    if(instance == null) { 
	      instance = new Watchdog(); 
	    } 
	    return instance; 
	  } 
	    
	  private Watchdog() { 
	     
	  } 
	
	
	public native int openWatchdog(int heartbeats);
	public native int feedWatchdog();
	public native int changeHeartBeats(int heartbeats);
	public native int reset();
	public native int close();
}
